mod_errors

    模块配置文件: conf/mod_errors/mod_errors.conf

    1. "Version": "20190101000000",
    2. "Config": {
    3. {
    4. "Cond": "res_code_in(\"404\")",
    5. "Actions": [
    6. {
    7. "Cmd": "RETURN",
    8. "200", "text/html", "../conf/mod_errors/404.html"
    9. ]
    10. }
    11. ]
    12. },
    13. "Cond": "res_code_in(\"500\")",
    14. "Actions": [
    15. "Cmd": "REDIRECT",
    16. "Params": [
    17. "http://example.org/error.html"
    18. ]
    19. }
    20. ]
    21. }
    22. ]
    23. }